<?php

namespace app\repositories\contracts;

/***
 * Interface MenuInterface
 * @NAMESPACE app\repositories\contracts
 * @Author Vee7
 * @Date 2021/12/14
 * @Time 13:11
 * @Description 后台菜单接口
 */
interface MenuInterface
{
    /***
     * @return mixed
     * @Author Vee7
     * @Date 2021/12/14
     * @Time 13:11
     * @Description 获取后台菜单列表
     */
    public function getMenuList($orderby='sort',$order='desc');

    public function getArrayListForAuth($data,$pid = 0,$group_id);

    public function getListForAuth($group_id);

    public function addMenuList(array $addArray);

    public function getMenuListCount();

    public function getMenuListPage($page,$limit,$orderby='sort',$order='desc');

    public function getArrayList($data,$pid = 0);

    public function getList();

    public function delMenuList(array $id);

    public function editMenuList(array $data);

    public function getMenuInfo($menu_route);

    public function getAllParent($childId);
}